<#assign bv="20151123">
<link rel="stylesheet"
	href="${static}/framework/kindeditor/themes/default/default.css?v=${bv}" />
<link rel="stylesheet"
	href="${static}/framework/kindeditor/plugins/code/prettify.css?v=${bv}" />
<script charset="utf-8"
	src="${static}/framework/kindeditor/kindeditor.js?v=${bv}"></script>
<script charset="utf-8"
	src="${static}/framework/kindeditor/lang/zh_CN.js?v=${bv}"></script>
<script charset="utf-8"
	src="${static}/framework/kindeditor/plugins/code/prettify.js?v=${bv}"></script>
<script>
	kdItems = [ 'copy', 'paste', 'plainpaste', '|', 'justifyleft',
			'justifycenter', 'justifyright', 'justifyfull',

			'-', 'title', 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor',
			'bold', 'italic', 'underline', 'strikethrough' ];
	prettifyCssPath = "${static}/framework/kindeditor/plugins/code/prettify.css?v=${bv}";
	uploadJson = "${base}/kindeditor/uploadJson";
	function editor(id) {
		var editor=KindEditor.create('textarea[id="' + id + '"]', {
			allowFileManager : true,
			cssPath : prettifyCssPath,
			uploadJson : uploadJson,
			urlType : 'absolute',
			items : kdItems,
			cssData : 'body { font:24px 微软雅黑; }'
		});
		return editor;
	}
</script>